package com.iot.util;

import org.redisson.config.Config;
import org.springframework.context.annotation.Bean;
import org.redisson.Redisson;


public class JedisUtils {


      @Bean
    public static Redisson getRedis(){

        Config config=new Config();
        config.useSingleServer().setAddress("redis://192.168.170.130:6379").setDatabase(0);

        return (Redisson)Redisson.create(config);

    }
}
